package ch15;

import com.sun.org.apache.xerces.internal.impl.xs.SchemaSymbols;

import java.time.format.SignStyle;

/**
 * Created by hp on 2016/4/23.
 */

public class SplitDemo {
    public static void main(String[] args) {
        for(String token : "Justin,Monica,Irene".split(",")){
            System.out.println(token);
        }
        for(String token : "JuatinOrzMonicaOrzIrene".split("Orz")){
            System.out.println(token);
        }
        for(String token : "Justin\tMonica\tIrene".split("\\t")){
            System.out.println(token);
        }
    }
}
